package com.sunlands.qdcy.deskmate.service.task;

import com.sunlands.qdcy.deskmate.common.annotation.AutoLog;
import com.sunlands.qdcy.deskmate.service.DicServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class TaskDicServiceImpl {

    @Autowired
    private DicServiceImpl dicService;

    @AutoLog
    @Scheduled(cron = "0 0/5 * * * ?")
    public void refreshAll() {
        log.debug("刷新全部字典信息");
        dicService.refreshAll();
    }

}